﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Community.CsharpSqlite.Entity
{

    /* All threads share a single random number generator.
** This structure is the current state of the generator.
*/

    public class sqlite3PrngType
    {
        public int i;
        public bool isInit; /* True if initialized */
        public int j; /* State variables */
        public byte[] s = new byte[256]; /* State variables */

        public sqlite3PrngType Copy()
        {
            var cp = (sqlite3PrngType)MemberwiseClone();
            cp.s = new byte[s.Length];
            Array.Copy(s, cp.s, s.Length);
            return cp;
        }
    }
}
